package com.baizhi.cmfzmanager.dao;

import com.baizhi.cmfzmanager.entity.User;
import com.baizhi.cmfzmanager.entity.UserDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

public interface UserDao extends BaseMapper<User> {

    List<UserDTO> getSexData();
    List<Map> getProvinceData();
    List<UserDTO> getRegistData();

    User login(String userTelephone, String userPassword);

    void updateUsername(Integer userId, String username);

    void updateUserImage(Integer userId, String filename);

    void updateNickname(Integer userId, String userNickname);
}
